package com.superlc.ssm.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ProjectName: ssm$
 * @Package: com.superlc.ssm.config$
 * @ClassName: SsmProperties$
 * @Description: 项目的配置
 * @Author: super
 * @CreateDate: 2018/8/22$ 13:17$
 * @UpdateUser: 更新者
 * @UpdateDate: 2018/8/22$ 13:17$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
@Component
@ConfigurationProperties(prefix = SsmProperties.PREFIX)
public class SsmProperties {
    public static final String PREFIX = "ssm" ;

    private Boolean kaptchaOpen = false ;

    private Boolean swaggerOpen = false ;

    private Boolean springSessionOpen = false ;

    private Integer sessionInvalidateTime = 60;

    private Integer sessionValidationInterval = 15 ;

    private Boolean springSessionSingle = false ;

    private Boolean redisCacheOpen = false  ;

    private Boolean ehcacheOpen = true ;

    private String  getCurrentCache(){
        return null ;
    }

    public Boolean getSpringSessionSingle() {
        return springSessionSingle;
    }

    public void setSpringSessionSingle(Boolean springSessionSingle) {
        this.springSessionSingle = springSessionSingle;
    }

    public Boolean getRedisCacheOpen() {
        return redisCacheOpen;
    }

    public void setRedisCacheOpen(Boolean redisCacheOpen) {
        this.redisCacheOpen = redisCacheOpen;
    }

    public Boolean getEhcacheOpen() {
        return ehcacheOpen;
    }

    public void setEhcacheOpen(Boolean ehcacheOpen) {
        this.ehcacheOpen = ehcacheOpen;
    }

    public Integer getSessionInvalidateTime() {
        return sessionInvalidateTime;
    }

    public void setSessionInvalidateTime(Integer sessionInvalidateTime) {
        this.sessionInvalidateTime = sessionInvalidateTime;
    }

    public Integer getSessionValidationInterval() {
        return sessionValidationInterval;
    }

    public void setSessionValidationInterval(Integer sessionValidationInterval) {
        this.sessionValidationInterval = sessionValidationInterval;
    }

    public Boolean getKaptchaOpen() {
        return kaptchaOpen;
    }

    public void setKaptchaOpen(Boolean kaptchaOpen) {
        this.kaptchaOpen = kaptchaOpen;
    }

    public Boolean getSwaggerOpen() {
        return swaggerOpen;
    }

    public void setSwaggerOpen(Boolean swaggerOpen) {
        this.swaggerOpen = swaggerOpen;
    }

    public Boolean getSpringSessionOpen() {
        return springSessionOpen;
    }

    public void setSpringSessionOpen(Boolean springSessionOpen) {
        this.springSessionOpen = springSessionOpen;
    }
}
